<template>
  <home v-if="isLogIn && !isSignin  " />
  <Signin v-else-if="isLogIn && isSignin" />
  <Login v-else />
</template>

<script>
import home from '@/views/index';
import Login from "@/views/login";
import Signin from '@/views/signin';
import {getStore} from '@/util/store.js';


export default {
  components: {
    Login, home, Signin
  },
  data() {
    return {
      isLogIn: false,
      isSignin: false,
    }
  },
  mounted() {
    if (getStore('TOKEN') == null) {
      this.isLogIn = false
      // this.$router.push("/")
    } else {
      this.isLogIn = true
      this.isSignin = false
    }

    if (getStore('signin') == null) {
      this.isSignin = false
    } else {
      this.isSignin = true
      this.isLogIn = true
    }
  },
  methods: {

  }
}

</script>
